<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns="http://www.w3.org/1999/html">
<head>
    <th:block th:include="include :: header('连接数据库')"/>
</head>
<body class="white-bg">
<form class="form-horizontal m" id="form-dict-edit" th:object="${DatabaseDetails}"  type="hidden" >
<input id="ip" name="ip"  type="hidden" th:field="*{ip}" />
<input id="port" name="port"  type="hidden" th:field="*{port}" />
<input id="root" name="root"  type="hidden" th:field="*{root}" />
<input id="password" name="password"  type="hidden" th:field="*{password}" />
<input id="databaseName" name="databaseName"  type="hidden" th:field="*{databaseName}" />
</form>
    <div class="col-sm-12 select-table table-striped" id="rTab">
        <table id="bootstrap-tree-table">
            <thead>
            <tr>
                <th class="center" style="width:50px;">序号</th>
                <th class='left'>表名</th>
            </tr>
            </thead>

            <tbody id="valuelist">
            <tr class='center'>
                <td colspan="10">数据显示区</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>


<th:block th:include="include :: footer"/>
<script th:inline="javascript">



    // // 提交表单
    // form.on('submit(rgcode-form-submit)', function (data) {
    //     //获取所有表
    //     $('#form-details-edit').attr('method', 'POST');
    //     admin.reqM('system/details/edit', JSON.stringify(data.field), function (data) {
    //         if (data.resp_code == 0) {
    //             $("#valuelist").html('');	//初始清空值列表
    //             $.each(data.datas.tblist, function(n, tblist){ 	//列出每条记录
    //                 $("#valuelist").append('<tr><td class="center">'+(n+1)+'</td><td>'+tblist+'</td><td class="center"><button class="layui-btn" lay-event="reMapper" onclick="productCode(\''+tblist+'\')">反射</button></td></tr>');
    //             });
    //         }else{
    //             layer.msg('连接失败,检查连接参数是否正确！');
    //         }
    //     }, $('#rgcode-form').attr('method'));
    //     return false;
    // });
</script>
</body>
</html>